def numPrint(n):
    for i in range(n):
        for j in range(n,0,-1):
            if j <= i+1:
                print("{}".format(j),end=' ')
            else:
                print(' ',end=' ')

        print()

def numRePrint(n):
    for i in range(n):
        for j in range(n,0,-1):
            if j <= n-i:
                print("{}".format(j),end=' ')
            else:
                print(' ',end=' ')


        print()

#numPrint(12)
numRePrint(12)
